import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import store from "./store/index"
import img from './utils/img'

import VideoPlayer from 'vue-video-player/src'
import 'vue-video-player/src/custom-theme.css'
import 'video.js/dist/video-js.css'
import './utils/commonFunction.js'
Vue.use(VideoPlayer)
import headPage from "@/components/public/HeadPage.vue"
import Nationwide from "@/components/public/NationWide.vue"
//省份组件
import Provice from "@/components/public/ProvincePage.vue"
import Banner from "@/components/Home/BannerView.vue"
Vue.component("Banner",Banner)
Vue.component("Provice-page",Provice)
Vue.component("Nation-wide",Nationwide)
Vue.component('head-page', headPage)
Vue.config.productionTip = false
import {
	Tabbar,
	TabbarItem,
	Search,
	Form,
	Field,
	Button,
	Dialog,
	Divider,
	Cell,
	CellGroup,
	Swipe,
	SwipeItem,
	Checkbox,
	CheckboxGroup,
	NavBar,
	Toast,
	Uploader,
	Popup,
	Picker,
	RadioGroup,
	Radio,
	Area,
	DatetimePicker,
	DropdownMenu,
	DropdownItem,
	Stepper,
	Icon,
	PasswordInput,
	List,
	NumberKeyboard ,
	Image as VanImage
} from 'vant'

const vantUi = [
	Tabbar,
	List,
	TabbarItem,
	Search,
	Form,
	Field,
	Button,
	Dialog,
	Divider,
	Cell,
	CellGroup,
	Swipe,
	SwipeItem,
	Checkbox,
	CheckboxGroup,
	NavBar,
	Toast,
	Uploader,
	Popup,
	Picker,
	RadioGroup,
	Radio,
	Area,
	DatetimePicker,
	DropdownMenu,
	DropdownItem,
	Stepper,
	Icon,
	VanImage,
	PasswordInput,
	NumberKeyboard
]

for (const vant of vantUi) {
	Vue.use(vant)
}

Vue.prototype.imgurl = img.imgurl // 图片地址
Vue.prototype.richTextImg = img.richTextImg // 富文本数据图片地址

import Calendar from 'vue2-datepick' //日期控件
Vue.use(Calendar)//日期控件
// import BaiduMap from 'vue-baidu-map'
// Vue.use(BaiduMap, { ak: '2drED6LQtjmNTc43LnfzdbnlUoQGoDx1' })

new Vue({
	render: h => h(App),
	router,
	store
}).$mount('#app')
